using System.Collections.Generic;
using com.tc.util;
using  com.tc.zigbee.zcl;
using  com.tc.zigbee.entity;
using  com.tc.zigbee.zcl.command;
namespace com.tc.zigbee.mt.income
{
    public class PowerDescriptorResponse : IncomeMessage
    {

        public PowerDescriptor getPowerDescriptor()
        {
            return powerDescriptor;
        }
        byte status;
        PowerDescriptor powerDescriptor = new PowerDescriptor();
        public PowerDescriptorResponse(byte[] command)
        {
            int i = 0;
            byte[] ad = new byte[2];
            ad[0] = command[i++];
            ad[1] = command[i++];
            powerDescriptor.srcAddr = DataUtil.shortValue(ad);
            status = command[i++];
            ad[0] = command[i++];
            ad[1] = command[i++];
            powerDescriptor.nwkAddr = DataUtil.shortValue(ad);
            powerDescriptor.CurrentPowerMode = command[i++];
            powerDescriptor.CurrentPowerSource = command[i++];
        }

    }
}